home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2001 May / SGI IRIX Base Documentation 2001 May.iso / usr / share / catman / p_man / cat3 / f90 / selected.z / selected
Encoding:
Text File  |  1998-10-30  |  2.2 KB  |  67 lines

  1.  
  2.  
  3.  
  4. SSSSEEEELLLLEEEECCCCTTTTEEEEDDDD((((3333FFFF))))                                                      SSSSEEEELLLLEEEECCCCTTTTEEEEDDDD((((3333FFFF))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      - return a kind type parameter given a decimal exponent range or
  10.      precision.
  11.  
  12. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  13.      sssseeeelllleeeecccctttteeeedddd____iiiinnnntttt____kkkkiiiinnnndddd ((((rrrr))))
  14.  
  15.      sssseeeelllleeeecccctttteeeedddd____rrrreeeeaaaallll____kkkkiiiinnnndddd ((((pppp,,,,rrrr))))
  16.  
  17. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  18.      The Fortran 90 transformational function _s_e_l_e_c_t_e_d__i_n_t__k_i_n_d returns the
  19.      kind type parameter of an integer type that can represent the range of
  20.      values _n such that -10**_r < _n < 10**_r.  If no such kind exists, the
  21.      result is -1.  If more than one kind meets the criteria, the result is
  22.      the kind type parameter of the kind with the smallest decimal exponent
  23.      range. Both _r and the result are scalars of integer type.
  24.  
  25.      The _s_e_l_e_c_t_e_d__r_e_a_l__k_i_n_d function is similar, but returns the kind type
  26.      parameter of a real type that has the decimal precision of at least _p
  27.      digits and a decimal exponent range of at least _r.  While precision _p and
  28.      range _r are optional, at least one of them must be specified.  They must
  29.      be scalar and of integer type.  If more than one kind satisfies the
  30.      condition, the result is the kind type parameter of the kind with the
  31.      smallest decimal precision. If a suitable kind is not found, the result
  32.      is:
  33.  
  34.      ----1111   if the requested precision is unavailable
  35.  
  36.      ----2222   if the requested range is unavailable
  37.  
  38.      ----3333   if both are unavailable
  39.  
  40. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  41.      kind(3F), precision(3F), range(3F)
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.